package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class NanDongNotMoveRelicRowMapper  implements RowMapper<NanDongNotMoveRelic> {
    @Override
    public NanDongNotMoveRelic mapRow(ResultSet resultSet, int i) throws SQLException {
        NanDongNotMoveRelic nd = new NanDongNotMoveRelic();
        nd.setId(resultSet.getInt("id"));
        nd.setName(resultSet.getString("name"));
        nd.setAddress(resultSet.getString("address"));
        nd.setGrade(resultSet.getString("grade"));
        nd.setJw(resultSet.getString("jw"));
        nd.setNumber(resultSet.getString("number"));
        nd.setLng(resultSet.getString("lng"));
        nd.setLat(resultSet.getString("lat"));
        return nd;
    }
}
